<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var info = {
        name: "abc",
        age: 12,

        // [Symbol.toPrimitive]() {
        // 	return 123
        // },

        toString() {
          return 123;
        },

        valueOf() {
          return 1234;
        },
      };
      console.log(123 == info);
    </script>
  </body>
</html>
